package com.wsl.myexception.exception;

import lombok.Data;


/**
 * 自定义异常类
 * Spring只对RuntimeException 进行事务回滚  对Exception不进行事务回滚
 */
@Data
public class WslException  extends RuntimeException{
    private Integer code;

    public WslException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}
